package ord2.indexer;

import ord2.core.AbstractFactory;

/**
 * This class is used to store all indexers that can be used by the system.
 * Each indexer has a name that represents it.
 *
 * @author José Ivan
 * @author Edviges
 *
 */
public final class IndexerFactory extends AbstractFactory<String, Indexer> {
    
    private static IndexerFactory instance = null;
    
    private IndexerFactory() {
        
        super();
    }
    
    /**
     * Gets a instance of this converter to be used.
     * @return A instance of this factory
     */
    public static IndexerFactory getInstance() {
        
        if (instance == null) {
            
            instance = new IndexerFactory();
        }
        
        return instance;
    }
}
